package com.treasure.web.mapstruct;

import com.treasure.infrastructure.model.po.CorpTrialApprove;
import com.treasure.web.command.response.CorpTrialApproveResponse;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author sunhongmin
 * @date 2024/1/14 14:22
 * @description
 */
@Mapper
public interface CorpTrialApproveAssembler {
    CorpTrialApproveAssembler INSTANCE = Mappers.getMapper(CorpTrialApproveAssembler.class);

    @Mapping(target = "created", dateFormat = "yyyy-MM-dd HH:mm:ss")
    List<CorpTrialApproveResponse> convert(List<CorpTrialApprove> corpTrialApprove);

}
